package org.neuedu.chapter03_0610;

public class Practice10 {
    public static void main(String[] args) {
        // 输入三个整数x,y,z，请把这三个数由小到大输出
        int x = 661, y = 662, z = 660;

        if (x > y) {
            int temp = x;
            x = y;
            y = temp;
        }

        if (x > z) {
            int temp = x;
            x = z;
            z = temp;
        }

        if (y > z) {
            int temp = y;
            y = z;
            z = temp;
        }

        System.out.println(x);
        System.out.println(y);
        System.out.println(z);
    }
}
